package com.cat.mediator;

/**
 * @author cat
 * @version 2025/5/27 19:34
 * @description 租客(具体同事类)
 * @since JDK17
 */

public class Tenant extends Person {
    public Tenant(String name, Mediator mediator) {
        super(name, mediator);
    }

    // 和中介沟通
    public void contact(String message) {
        mediator.contact(message, this);
    }

    // 获取信息
    public void getMessage(String message) {
        System.out.println("租客 " + name + " 获取信息：" + message);
    }

}
